<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="org.apache.commons.lang.RandomStringUtils" %>


  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />
    <!--[if IE 6]><link rel="stylesheet" href="../css/style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="../css/style.ie7.css" type="text/css" media="screen" /><![endif]-->
	
	<script type="text/javascript" src="../js/jquery-1.7.2.js"></script>
    

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Inserimento Prodotto</title>
</head>

<body onUnload="javascript:window.opener.document.location.href='accesso'; window.close();">
<!-- body onUnload="javascript:window.opener.location.reload (); window.close();" -->
<div id="art-page-background-glare">
        <div id="art-page-background-glare-image"></div>
    </div>
	<div id="art-main">
		<form action="magazziniere" method="post" name="depositoForm" id="depositoForm">
		<input type="hidden" name="actionToDo" value="addProdotti" />
		<fieldset>
		<legend>Deposito Prodotti</legend>
			<div>
				<label>Nome Prodotto</label>
				<input type="text" name="nomeProdotto" id="nomeProdotto" />
			</div>
			<div>
				<label>Codice Prodotto</label>
				<input type="text" name="codiceProdotto" id="codiceProdotto" value="<%=RandomStringUtils.randomAlphanumeric(16)%>"/>
			</div>
			<div>
				<label>Codice Lotto</label>
				<input type="text" name="codiceLotto" id="codiceLotto" value="<%=RandomStringUtils.randomAlphanumeric(16) %>" />
			</div>
			<div>
				<label>Q.Prodotti nel Lotto</label>
				<input type="text" name="qProdotto" id="qProdotto" />
			</div>
			<div>
				<label>Data Consegna</label>
				<input type="text" name="dataConsegna" id="dataConsegna" />
				<div style="width:30%;margin:auto;color:#888888;font-size:0.9em">
					(gg/mm/aaaa)
				</div>
			</div>
			
			<div>
				<label>Data Scadenza</label>
				<input type="text" name="dataScadenza" id="dataScadenza" />
				<div style="width:30%;margin:auto;color:#888888;font-size:0.9em">
					(gg/mm/aaaa)
				</div>
			</div>
			<div>
				<label>Prezzo Unitario</label>
				<input type="text" name="prezzo" id="prezzo" />
			</div>
			<input type="submit" name="conferma" value="Conferma" />
		</fieldset>
	</form>
	</div>
</body>
</html>